﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000429 RID: 1065
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ELNBHBPKBCK : IMessage<ELNBHBPKBCK>, IMessage, IEquatable<ELNBHBPKBCK>, IDeepCloneable<ELNBHBPKBCK>, IBufferMessage
	{
		// Token: 0x17000DB9 RID: 3513
		// (get) Token: 0x06002FDB RID: 12251 RVA: 0x00084284 File Offset: 0x00082484
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ELNBHBPKBCK> Parser
		{
			get
			{
				return ELNBHBPKBCK._parser;
			}
		}

		// Token: 0x17000DBA RID: 3514
		// (get) Token: 0x06002FDC RID: 12252 RVA: 0x0008428B File Offset: 0x0008248B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ELNBHBPKBCKReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000DBB RID: 3515
		// (get) Token: 0x06002FDD RID: 12253 RVA: 0x0008429D File Offset: 0x0008249D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ELNBHBPKBCK.Descriptor;
			}
		}

		// Token: 0x06002FDE RID: 12254 RVA: 0x000842A4 File Offset: 0x000824A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ELNBHBPKBCK()
		{
		}

		// Token: 0x06002FDF RID: 12255 RVA: 0x000842AC File Offset: 0x000824AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ELNBHBPKBCK(ELNBHBPKBCK other) : this()
		{
			this.maxScore_ = other.maxScore_;
			this.stageId_ = other.stageId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06002FE0 RID: 12256 RVA: 0x000842DD File Offset: 0x000824DD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ELNBHBPKBCK Clone()
		{
			return new ELNBHBPKBCK(this);
		}

		// Token: 0x17000DBC RID: 3516
		// (get) Token: 0x06002FE1 RID: 12257 RVA: 0x000842E5 File Offset: 0x000824E5
		// (set) Token: 0x06002FE2 RID: 12258 RVA: 0x000842ED File Offset: 0x000824ED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MaxScore
		{
			get
			{
				return this.maxScore_;
			}
			set
			{
				this.maxScore_ = value;
			}
		}

		// Token: 0x17000DBD RID: 3517
		// (get) Token: 0x06002FE3 RID: 12259 RVA: 0x000842F6 File Offset: 0x000824F6
		// (set) Token: 0x06002FE4 RID: 12260 RVA: 0x000842FE File Offset: 0x000824FE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint StageId
		{
			get
			{
				return this.stageId_;
			}
			set
			{
				this.stageId_ = value;
			}
		}

		// Token: 0x06002FE5 RID: 12261 RVA: 0x00084307 File Offset: 0x00082507
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ELNBHBPKBCK);
		}

		// Token: 0x06002FE6 RID: 12262 RVA: 0x00084315 File Offset: 0x00082515
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ELNBHBPKBCK other)
		{
			return other != null && (other == this || (this.MaxScore == other.MaxScore && this.StageId == other.StageId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06002FE7 RID: 12263 RVA: 0x00084354 File Offset: 0x00082554
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.MaxScore != 0U)
			{
				num ^= this.MaxScore.GetHashCode();
			}
			if (this.StageId != 0U)
			{
				num ^= this.StageId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06002FE8 RID: 12264 RVA: 0x000843AC File Offset: 0x000825AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06002FE9 RID: 12265 RVA: 0x000843B4 File Offset: 0x000825B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06002FEA RID: 12266 RVA: 0x000843C0 File Offset: 0x000825C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.StageId != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.StageId);
			}
			if (this.MaxScore != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.MaxScore);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06002FEB RID: 12267 RVA: 0x0008441C File Offset: 0x0008261C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.MaxScore != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MaxScore);
			}
			if (this.StageId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.StageId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06002FEC RID: 12268 RVA: 0x00084474 File Offset: 0x00082674
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ELNBHBPKBCK other)
		{
			if (other == null)
			{
				return;
			}
			if (other.MaxScore != 0U)
			{
				this.MaxScore = other.MaxScore;
			}
			if (other.StageId != 0U)
			{
				this.StageId = other.StageId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06002FED RID: 12269 RVA: 0x000844C4 File Offset: 0x000826C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06002FEE RID: 12270 RVA: 0x000844D0 File Offset: 0x000826D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 24U)
				{
					if (num != 32U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.MaxScore = input.ReadUInt32();
					}
				}
				else
				{
					this.StageId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040012EB RID: 4843
		private static readonly MessageParser<ELNBHBPKBCK> _parser = new MessageParser<ELNBHBPKBCK>(() => new ELNBHBPKBCK());

		// Token: 0x040012EC RID: 4844
		private UnknownFieldSet _unknownFields;

		// Token: 0x040012ED RID: 4845
		public const int MaxScoreFieldNumber = 4;

		// Token: 0x040012EE RID: 4846
		private uint maxScore_;

		// Token: 0x040012EF RID: 4847
		public const int StageIdFieldNumber = 3;

		// Token: 0x040012F0 RID: 4848
		private uint stageId_;
	}
}
